<template>
	<view class="sign-success">
		<navBar title="注册成功" justCenter="justCenter"></navBar>
		<view class="success-view">
			<img src="https://www.jk334.cn/img/sign-up-fare.png" alt="" class="receive-top-nav-content-icon" />
			<!-- <u--image :showLoading="true" src="" width="211px"
				height="80px"></u--image> -->
			<view class="success-text">
				注册成功
				<text style="color:red">3S</text>
				后跳转到我的任务
			</view>
		</view>
	</view>
</template>

<script>
	import navBar from '@/components/navBar/navBar.vue';
	import {
		myRequest
	} from '@/utiles/api.js'
	import {
		getHeight
	} from '@/utiles/utils.js';
	import {
		getStore
	} from '@/store/store.js'
	export default {
		comments: {
			navBar,
		},
		data() {
			return {
				heightValue: 0,
				userInfo: {},
			}
		},
		onShow() {
			const windowHeight = getHeight().windowHeight //100vh
			const statusBarHeight = getHeight().statusBarHeight //tabBar高度
			const navBareight = getHeight().navBareight //头部高度
			this.heightValue = windowHeight - statusBarHeight - navBareight
			setTimeout(() => {
				this.jumpHome()
			}, 2800)
		},
		methods: {
			jumpHome() {
				uni.setStorageSync('verifyShow', true);
				getStore('verifyShow', true)
				uni.switchTab({
					url: '/pages/Home/Home'
				});
			},
		}
	}
</script>

<style scoped lang="scss">
	.sign-success {
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		font-size: 26rpx;
		font-family: PingFang SC, PingFang SC;

		.success-view {
			flex: 1;
			display: flex;
			flex-direction: column;
		}

		.receive-top-nav-content-icon {
			width: 422rpx;
			height: 240rpx;
			margin-top: 200rpx;
			margin-bottom: 30rpx;
		}

		.success-text {
			margin-top: 60rpx;
			text-align: center;
		}
	}
</style>